package cn.itsource.blog.service;



import cn.itsource.blog.domain.Article;
import cn.itsource.blog.domain.ArticleType;
import cn.itsource.blog.query.ArticleQuery;
import cn.itsource.vo.ArticleVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IArticleService {
    void add(Article article);
    void update(Article article);
    void delete(Long id);
    Article getOne(Long id);
    List<Article> getAll();

    void patchDelete(Long[] ids);

    PageInfo<Article> pageQuery(ArticleQuery query);


    List<ArticleVo> countNumberByType();

    List<ArticleVo> countNumberByTime();

    List<Article> getRelatedArticles(Long id);

    ArticleVo getArticles(Long id);

     List<Article> getArticleRecommend();

    Integer getArticleRecommendCount();
}
